const pool = require('../tools/getPool');
const sendResponse = require('../tools/sendResponse');

module.exports = function(req, res){

	// 清空session
	req.session.adminIsLogin = false;
	req.session.adminId = null;
	req.session.adminAccount = null;
	req.session.adminName = null;
	
	sendResponse('ok','退出登录成功', null, res);

}